package com.xframe.xdal.core.annotation;

import lombok.Data;

@Data
public class XSelectItemModel {

    /**
     * 当前的语言环境
     */
    private String language;

    /**
     * key的属性名称
     */
    private String keyName;
    /**
     * code的属性名称
     */
    private String codeName;
    /**
     * text的属性名称
     */
    private String textName;

    public boolean findKey(String attrName){
        if(attrName.equals(keyName)){
            return true;
        }
        return false;
    }

    public boolean findName(String attrName){
        if(attrName.equals(textName)){
            return true;
        }
        return false;
    }
}
